﻿using JESAI.EventBus.Attributes;
using JESAI.EventBus.Contexts;

namespace JESAI.EventBus.WebApi.Test
{
    public class TestSubscributer : IEventSubscriber
    {
        [EventSubscribe("Test:Test")]
        public async Task Test(EventExecutingContext context)
        {
            var todo = context.Event;

            Console.WriteLine("创建一个 Test：{Name}", todo.Payload);
            await Task.CompletedTask;
        }
    }
}
